package com.thememaker.lockstyle.bean.command;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by binghui.hang on 2018/2/23.
 * 声音命令，可以用来播放音频文件
 * <SoundCommand sound="" volume="" loop="" keepCur="" />
 */
@XmlRootElement(name = "SoundCommand")
public class SoundCommand extends BaseCommand{
    private String sound;
    private String volume;
    private String loop;
    private String keepCur;

    @XmlAttribute(name = "sound")
    public String getSound() {
        return sound;
    }

    @XmlAttribute(name = "volume")
    public String getVolume() {
        return volume;
    }

    @XmlAttribute(name = "loop")
    public String getLoop() {
        return loop;
    }

    @XmlAttribute(name = "keepCur")
    public String getKeepCur() {
        return keepCur;
    }

    public void setSound(String sound) {
        this.sound = sound;
    }

    public void setVolume(String volume) {
        this.volume = volume;
    }

    public void setLoop(String loop) {
        this.loop = loop;
    }

    public void setKeepCur(String keepCur) {
        this.keepCur = keepCur;
    }
}
